package com.imooc.annoations;

import java.lang.annotation.*;

/**
 * Created by MisterDeng on 2018/5/17/017 13:45.
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface AccessLimit {

    /**
     * 限定时间
     */
    int second() default 3;

    /**
     * 限定次数
     */
    int maxCount() default 15;

    /**
     * 限制字段
     */
    String field() default "openid";
}
